package com.yc.damai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 大麦商城-地址表-1
 * </p>
 *
 * @author lpt
 * @since 2024-09-08
 */
@Getter
@Setter
@TableName("dm_address")
public class DmAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 详细地址
     */
    @TableField("addr")
    private String addr;

    /**
     * 收货人电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 收货人姓名
     */
    @TableField("name")
    private String name;

    /**
     * 默认地址 1默认
     */
    @TableField("dft")
    private Boolean dft;

    /**
     * 创建时间, 默认当前时间
     */
    @TableField("createtime")
    private LocalDateTime createtime;


}
